Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/navigation/src/commonTest/kotlin/org/meshtastic/core/navigation/NavigationParityTest.kt 520fa717a938fd84682403b41f57d9f7e1ef49ef (520fa717) Text, 1.34 KB

T8b949e/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.navigation

Tff7b72import T7ee787kotlin.test.Test
Tff7b72import T7ee787kotlin.test.assertEquals
Tff7b72import T7ee787kotlin.test.assertNotNull

Tff7b72class T56d364NavigationParityTest Tb4b4b4{

Tf0883e@Test
Tff7b72fun Td2a8ff`all top level destinations are defined`Tb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3assertEqualsTb4b4b4(T79c0ff5Tb4b4b4, Te6edf3TopLevelDestinationTb4b4b4.Te6edf3entriesTb4b4b4.Te6edf3sizeTb4b4b4)
Tb4b4b4}

Tf0883e@Test
Tff7b72fun Td2a8ff`fromNavKey matches all top level routes`Tb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3TopLevelDestinationTb4b4b4.Te6edf3entriesTb4b4b4.Te6edf3forEach Tb4b4b4{ Te6edf3destination Tff7b72-Tff7b72>
Tff7b72val Te6edf3result Tff7b72= Te6edf3TopLevelDestinationTb4b4b4.Te6edf3fromNavKeyTb4b4b4(Te6edf3destinationTb4b4b4.Te6edf3routeTb4b4b4)
Te6edf3assertNotNullTb4b4b4(Te6edf3resultTb4b4b4, Ta5d6ff"Ta5d6ffShould match destination for route Tffd700${Te6edf3destinationTb4b4b4.Te6edf3routeTffd700}Ta5d6ff"Tb4b4b4)
Te6edf3assertEqualsTb4b4b4(Te6edf3destinationTb4b4b4, Te6edf3resultTb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s